package com.zx.oa.entity;

import java.util.Date;

/**
 * 考勤类
 */
public class CheckWork {
    private int id;//考勤Id
    private int studentNo;//学号
    private Date ckTime;//考勤时间
    private String ckStatu;//考勤状态：正常、迟到、早退、旷课

    public CheckWork() {
    }

    public CheckWork(int studentNo, Date ckTime, String ckStatu) {
        this.studentNo = studentNo;
        this.ckTime = ckTime;
        this.ckStatu = ckStatu;
    }

    public CheckWork(Integer id, String studentId, Date ckTime, String ckStatu) {
        this.id = id;
        this.studentNo = Integer.parseInt(studentId);
        this.ckTime = ckTime;
        this.ckStatu = ckStatu;
    }

    public CheckWork(int id, int studentNo, Date ckTime, String ckStatu) {
        this.id = id;
        this.studentNo = studentNo;
        this.ckTime = ckTime;
        this.ckStatu = ckStatu;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getStudentNo() {
        return studentNo;
    }

    public void setStudentNo(int studentNo) {
        this.studentNo = studentNo;
    }

    public Date getCkTime() {
        return ckTime;
    }

    public void setCkTime(Date ckTime) {
        this.ckTime = ckTime;
    }

    public String getCkStatu() {
        return ckStatu;
    }

    public void setCkStatu(String ckStatu) {
        this.ckStatu = ckStatu;
    }

    @Override
    public String toString() {
        return "CheckWork{" +
                "id=" + id +
                ", studentNo=" + studentNo +
                ", ckTime=" + ckTime +
                ", ckStatu='" + ckStatu + '\'' +
                '}';
    }
}
